import request from '@/utils/myRequest'

export function getStudentList(params) {
  return request({
    url: '/admin/xy/student/list',
    method: 'get',
    params
  })
}

export function delStudent(params) {
  return request({
    url: '/admin/xy/student/del',
    method: 'get',
    params
  })
}

export function addStudent(data) {
  return request({
    url: '/admin/xy/student/save',
    method: 'post',
    data
  })
}

export function updateStudent(data) {
  return request({
    url: '/admin/xy/student/update',
    method: 'post',
    data
  })
}

export function getStudentInfo(params) {
  return request({
    url: '/admin/xy/student/detail',
    method: 'get',
    params
  })
}

export function getCostList(params) {
  return request({
    url: '/admin/xy/cost/list',
    method: 'get',
    params
  })
}

